package application.view;

import application.model.*;
import javax.swing.*;


public class AbstractView extends JPanel
{
	private static final long serialVersionUID = 1L;
	protected AbstractModel model;
	
	public AbstractView(AbstractModel model)
	{
		this.model = model;
		this.model.addView(this);
	}
	
	public AbstractModel getModel() 
	{
		return this.model;
	}
	
	public void updateView()
	{
		repaint();
	}

}
